package com.sy.ptp.request;

import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateUtil;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
public class PtpGetTokenRequest {

    private String enterpriseKey;
    private String dateTime;

    public PtpGetTokenRequest(String enterpriseKey) {
        this.enterpriseKey = enterpriseKey;
        this.dateTime = DateUtil.format(new Date(), DatePattern.PURE_DATETIME_PATTERN);
    }
}
